package com.example.barcodeapp.ui.home.fragment;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.example.barcodeapp.R;
import com.example.barcodeapp.base.BaseFragment;
import com.example.barcodeapp.interfaces.IBasePersenter;
import com.example.barcodeapp.ui.home.ShiJianAdapter;

import butterknife.BindView;

public class vcount extends BaseFragment {


    @BindView(R.id.shijian_rv)
    RecyclerView shijianRv;
    private String text;

    public vcount(String text) {
        this.text = text;
    }


    @Override
    protected int getLayout() {
        return R.layout.vcountlayout;
    }

    @Override
    protected void initView() {
        shijianRv.setLayoutManager(new LinearLayoutManager(getActivity()));
        ShiJianAdapter shiJianAdapter = new ShiJianAdapter(getActivity(), text);
        shijianRv.setAdapter(shiJianAdapter);
        shiJianAdapter.notifyDataSetChanged();
    }

    @Override
    protected IBasePersenter initPersenter() {
        return null;
    }

    @Override
    protected void initData() {

    }


}
